package jen.android.JenLock;

import jen.android.JenLock.manager.OptionSetManager;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class SettingActivity extends Activity {

	OptionSetManager om;
	
	//=============================================================
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_setting);
		
		om = new OptionSetManager(this);
		
		Button bt = (Button) this.findViewById(R.id.setting_homeDefaultRemove);
		bt.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View view) {
				moveHomeSettingScreen();
			}			
		});
	}

	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {

		super.onActivityResult(requestCode, resultCode, data);
		
		if(requestCode == 200){
				Log.e("confirm", "back to setting");
				
			//	Intent intent = new Intent(this, HomeBlockSetting.class);
			//	startActivity(intent);
		}
	}


	@Override
	protected void onResume() {
	//	om.setSettingCheck(1);				//  1 : ON
		super.onResume();
	}
	
	@Override
	protected void onPause() {		
	//	om.setSettingCheck(0);	
		super.onPause();
	}
	
	
	@Override
	protected void onDestroy() {
		Log.e("confirm", "setting destroy");
		super.onDestroy();
	}

	//=============================================================



	public void moveHomeSettingScreen(){
		
		Intent intent = new Intent(this, HomeBlockSetting.class);
		startActivityForResult(intent, 200);
	}
	
}
